package com.kuang.pojo;


import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    private ApplicationContext ac = new ClassPathXmlApplicationContext("bean.xml");

    @Test
    public void testSet(){
        //从容器中获取
//        User usera = (User) ac.getBean(user_2);
//        System.out.println(usera);

    }
}

